import React, { Component } from 'react'
import RouterLine from '../router/RouterLine'
import RouterView from '../router/RouterView'

export class Home extends Component {
  render() {
      const {routerConfig}=this.props
    return (
      <div>
          <header>
              默认一级路由
          </header>
          <main>
              <RouterView routerConfig={routerConfig}></RouterView>
          </main>
          <footer>
              <RouterLine routerConfig={routerConfig}></RouterLine>
          </footer>
      </div>
    )
  }
}

export default Home